﻿@{
    ViewBag.Title = "修改支付密码";
    Layout = "~/Views/Shared/_LayoutFore.cshtml";
}
@section script{
    <script src="~/Scripts/jquery.passwordStrength.js"></script>
    <script type="text/javascript">
        function ChangePayPwdOnSuccess(data) {
            if (data.Status == 1) {
                $.dialog.tips(data.Message, 1, 'tips.gif', function () {
                    window.location.href = data.Data;
                });
            } else {
                //alert(data.Message);
                $.dialog.tips(data.Message, 2, 'tips.gif', function () {
                    $("#oldpwd,#newpwd,#newpwd1").val("");
                });
                return false;
            }
        }

        function ChangePayPasswordOnSuccess(data) {

        }
    </script>
}
<style>
    .tab-content dl dt:first-child {
        width:100px;
        text-align:right;
    }
</style>

<link href="~/Content/safe.css" rel="stylesheet" />
<div class="RightContrent">
    <div style="margin-left: 50px; margin-right: 50px;">
        <div class="tab-content">
            <div class="line10"></div>
            <div class="line10"></div>
            <div class="tab_title">@ViewBag.Title</div>
            <div class="tab-content">
                <div style="width: 16px; height: 12px; float: left;">
                    <img src="~/Content/Images/leftarraw.png" />
                </div>
            </div>

            <div class="tab-content_border">

                <div class="u-center">
                    <div class="u-form-wrap">
                        @using (Ajax.BeginForm("ChangePayPwd", "Account", new AjaxOptions() { OnSuccess = "ChangePayPwdOnSuccess" }))
                        {   
                            <div class="tab-content">
                                <dl>
                                    <dt>支付账户名： </dt>
                                    <dd>
                                        @Html.TextBox("accName", null, new { @class = "input normal", datatype = "*", nullmsg = "请输入账户名", errormsg = "", sucmsg = " " })
                                    </dd>
                                </dl>
                                <dl>
                                    <dt>支付密码： </dt>
                                    <dd>
                                        @Html.Password("oldpwd", null, new { @class = "input normal", datatype = "*6-18", nullmsg = "请输入支付密码", errormsg = "密码范围在6-18位之间", sucmsg = " " })
                                    </dd>
                                </dl>
                                <dl>
                                    <dt>新支付密码：</dt>
                                    <dd>
                                        @Html.Password("newpwd", null, new { @class = "input normal", datatype = "*6-18", nullmsg = "请输入新支付密码", errormsg = "密码范围在6-18位之间", sucmsg = " " })
                                    </dd>
                                </dl>
                                <dl>
                                    <dt>确认支付密码：</dt>
                                    <dd>
                                        @Html.Password("newpwd1", null, new { @class = "input normal", datatype = "*6-18", recheck = "newpwd", nullmsg = "请再输入一次新支付密码", errormsg = "两次输入的密码不一致", sucmsg = " " })
                                    </dd>
                                </dl>
                                <dl>
                                    <dd>
                                        <input type="submit" value="确定" id="btnSure" name="btnSure" class="btn" />

                                        <a href='@Url.Action("Index")' class="btn" style="color:white">返回</a>
                                    </dd>
                                </dl>
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
